﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords"
          content="candidates, career, employment, freelance, glassdoor, Human Resource Management, indeed, job board, job listing, job portal, job postings, jobs, listings, recruitment, resume">
    <meta name="CreativeLayers" content="ATFN">
    <!-- css file -->
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/style.css">
    <!-- Responsive stylesheet -->
    <link rel="stylesheet" href="/css/responsive.css">
    <!-- Title -->
    <title>未来是你的 - The Future Is Yours 一个能让你找到满意的工作的网站</title>
    <!-- Favicon -->
    <link href="/images/favicon.ico" sizes="128x128" rel="shortcut icon" type="image/x-icon"/>
    <link href="/images/favicon.ico" sizes="128x128" rel="shortcut icon"/>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">

        function validateUsername(e) {
            if ($(e).val() == "") {
                alert("用户名不能为空");
                $(e).css("border-color", "red");
            } else {
                $(e).css("border-color", "#ced4da");
            }
        }

        function validateEmail(e) {
            //Email正则
            var ePattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
            if (!ePattern.test($(e).val())) {
                alert("请输入正确的邮箱格式");
                $(e).css("border-color", "red");
                $(e).val("");
            } else {
                $(e).css("border-color", "#ced4da");
            }
        }

        function validatePhone(e) {
            //手机号正则
            var mPattern = /^1[3456789]\d{9}$/;
            if (!mPattern.test($(e).val())) {
                alert("请输入正确的手机号码");
                $(e).css("border-color", "red");
                $(e).val("");
                return false;
            } else {
                $(e).css("border-color", "#ced4da");
                return true;
            }
        }

        function validatePassword(e) {
            //只能输入6-20个字母、数字、下划线
            var pPattern = /^(\w){6,18}$/;
            if (!pPattern.test($(e).val())) {
                alert("请输入输入6-18个字母、数字、下划线");
                $(e).css("border-color", "red");
                $(e).val("");
            } else {
                $(e).css("border-color", "#ced4da");
            }
        }

        // #register-form
        function registerUser() {

            console.log($("#exampleCheck2").prop("checked"));
            if ($("#exampleCheck2").prop("checked") == true) {
                $.post("/user/register", $("#register-form").serialize(), function (data) {
                    // console.log(data);
                    if (data == '注册成功') {
                        alert(data);
                        setTimeout("window.location.href='/user/toLoginPage'", 2000);
                    } else {
                        alert(data);
                    }
                })
            } else {
                alert("请确认您接受条款和条件及隐私政策");
            }
        }
        // #register-form2
        function registerCompany() {

            console.log($("#exampleCheck3").prop("checked"));
            if ($("#exampleCheck3").prop("checked") == true) {
                $.post("/company/register", $("#register-form2").serialize(), function (data) {
                    // console.log(data);
                    if (data == '注册成功') {
                        alert(data);
                        setTimeout("window.location.href='/company/toLoginPage'", 2000);
                    } else {
                        alert(data);
                    }
                })
            } else {
                alert("请确认您接受条款和条件及隐私政策");
            }
        }
    </script>
</head>
<body>
<div class="wrapper">
    <div class="preloader"></div>

    <!-- Main Header Nav -->
    <header class="header-nav style_one navbar-scrolltofixed main-menu">
        <div class="container">
            <!-- Ace Responsive Menu -->
            <nav>
                <!-- Menu Toggle btn-->
                <div class="menu-toggle">
                    <img class="nav_logo_img img-fluid" src="/images/header-logo.png" alt="header-logo.png">
                    <button type="button" id="menu-btn">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <a href="/user/index" class="navbar_brand float-left dn-smd">
                    <img class="img-fluid mt10" src="/images/header-logo.png" alt="header-logo.png">
                </a>
                <!-- Responsive Menu Structure-->
                <!--Note: declare the Menu style in the data-menu-style="horizontal" (options: horizontal, vertical, accordion) -->
                <ul id="respMenu" class="ace-responsive-menu" data-menu-style="horizontal">
                    <li>
                        <a href="/user/index"><span class="title">首页</span></a>
                    </li>
                    <li>
                        <a href="/position/searchPosition"><span class="title">职位</span></a>
                    </li>
                    <li class="last">
                        <a th:if="${session.user==null}" href="/user/toLoginPage"><span class="title">我要找工作</span></a>
                    </li>
                    <li class="last">
                        <a th:if="${session.company==null}" href="/company/toLoginPage"><span class="title">我要招聘</span></a>
                    </li>
                </ul>
                <ul class="sign_up_btn pull-right dn-smd mt10">

                </ul><!-- Button trigger modal -->
            </nav>
            <!-- End of Responsive Menu -->
        </div>
    </header>
    <!-- Modal -->


    <!-- Inner Page Breadcrumb -->
    <section class="inner_page_breadcrumb bgc-f0 pt30 pb30" aria-label="breadcrumb">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <h4 class="breadcrumb_title float-left">Register</h4>
                    <ol class="breadcrumb float-right">
                        <li class="breadcrumb-item"><a href="#">首页</a></li>
                        <li class="breadcrumb-item active" aria-current="page">注册</li>
                    </ol>
                </div>
            </div>
        </div>
    </section>

    <!-- Our Register -->
    <section class="our-log-reg bgc-fa">
        <div class="container">
            <div class="row">
                <div class="col-sm-12 col-lg-6" style="margin: 0 auto;">
                    <div class="sign_up_form">
                        <div class="heading">
                            <h3 class="text-center">创建一个新账户</h3>
                            <p class="text-center">已经有账户? <a class="text-thm" href="/user/toLoginPage">登录</a></p>
                        </div>
                        <ul class="nav nav-pills mb-4" id="pills-tab" role="tablist">
                            <li class="nav-item">
                                <a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pills-home"
                                   role="tab" aria-controls="pills-home" aria-selected="true">个人账户</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" id="pills-profile-tab" data-toggle="pill" href="#pills-profile"
                                   role="tab" aria-controls="pills-profile" aria-selected="false">企业账户</a>
                            </li>
                        </ul>
                        <div class="tab-content" id="pills-tabContent">
                            <!--                            注册个人账户-->
                            <div class="tab-pane fade show active" id="pills-home" role="tabpanel"
                                 aria-labelledby="pills-home-tab">
                                <form id="register-form">
                                    <div class="form-group">
                                        <input type="text" class="form-control" id="exampleInputName1" placeholder="用户名"
                                               name="username" onblur="validateUsername(this)" required="required">
                                    </div>
                                    <div class="form-group">
                                        <input type="text" class="form-control" id="exampleInputEmail2" placeholder="电子邮箱"
                                               name="email" onblur="validateEmail(this)" required="required">
                                    </div>
                                    <div class="form-group">
                                        <input type="text" class="form-control" id="exampleInputPhone1"
                                               placeholder="电话号码" name="phone" onblur="validatePhone(this)"
                                               required="required">
                                    </div>
                                    <div class="form-group">
                                        <label style="float:left;"></label>
                                        <input type="text" class="form-control" placeholder="6位数字验证码"
                                               style="width: 230px;float: left;" name="messageCode" required="required">
                                        <span class="msgs">获取短信验证码</span>
                                    </div>
                                    <div class="form-group">
                                        <input type="password" class="form-control" id="exampleInputPassword2"
                                               placeholder="密码" name="password" onblur="validatePassword(this)"
                                               required="required">
                                    </div>
                                    <div class="form-group form-check">
                                        <input type="checkbox" class="form-check-input" id="exampleCheck2"
                                               required="required">
                                        <label class="form-check-label" for="exampleCheck2">请确认您接受条款和条件及隐私政策 </label>
                                    </div>
                                    <button type="button" class="btn btn-log btn-block btn-dark" id="register-btn"
                                            onclick="registerUser()">注册
                                    </button>
                                    <hr>
                                    <div class="row mt40">
                                        <div class="col-lg">
                                        </div>
                                        <div class="col-lg">
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <!--                            注册企业账户-->
                            <div class="tab-pane fade" id="pills-profile" role="tabpanel"
                                 aria-labelledby="pills-profile-tab">
                                <form id="register-form2">
                                    <div class="form-group">
                                        <input type="text" class="form-control"  placeholder="用户名"
                                               name="name" onblur="validateUsername(this)" required="required">
                                    </div>
                                    <div class="form-group">
                                        <input type="text" class="form-control" placeholder="电子邮箱"
                                               name="email" onblur="validateEmail(this)" required="required">
                                    </div>
                                    <div class="form-group">
                                        <input type="text" class="form-control"
                                               placeholder="电话号码" name="phone" onblur="validatePhone(this)" id="exampleInputPhone2"
                                               required="required">
                                    </div>
                                    <div class="form-group">
                                        <label style="float:left;"></label>
                                        <input type="text" class="form-control" placeholder="6位数字验证码"
                                               style="width: 230px;float: left;" name="messageCode" required="required">
                                        <span class="msgs2">获取短信验证码</span>
                                    </div>
                                    <div class="form-group">
                                        <input type="password" class="form-control"
                                               placeholder="密码" name="password" onblur="validatePassword(this)"
                                               required="required">
                                    </div>
                                    <div class="form-group form-check">
                                        <input type="checkbox" class="form-check-input" id="exampleCheck3"
                                               required="required">
                                        <label class="form-check-label" for="exampleCheck2">请确认您接受条款和条件及隐私政策 </label>
                                    </div>
                                    <button type="button" class="btn btn-log btn-block btn-dark" id="register-btn2"
                                            onclick="registerCompany()">注册
                                    </button>
                                    <hr>
                                    <div class="row mt40">
                                        <div class="col-lg">
                                        </div>
                                        <div class="col-lg">
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Our Footer Top Area -->
    <section class="footer_top_area p0">
        <div class="container">
            <div class="row">
                <div class="col-sm-12 col-lg-2 pb25 pt25">
                    <div class="logo-widget">
                        <img class="img-fluid" src="/images/header-logo.png" alt="header-logo.png">
                    </div>
                </div>
                <div class="col-sm-12 col-lg-6 pb25 pt25 pl60 pr40 brdr_left_right">
                    <div class="row">
                        <div class="col-xs-6 col-sm-3 col-md-3 col-lg-3">
                            <div class="funfact_one">
                                <div class="timer">2,395</div>
                                <p>Jobs Added</p>
                            </div>
                        </div>
                        <div class="col-xs-6 col-sm-3 col-md-3 col-lg-3">
                            <div class="funfact_one">
                                <div class="timer">1,267</div>
                                <p>Jobs Posted</p>
                            </div>
                        </div>
                        <div class="col-xs-6 col-sm-3 col-md-3 col-lg-3">
                            <div class="funfact_one">
                                <div class="timer">1,095</div>
                                <p>Companies</p>
                            </div>
                        </div>
                        <div class="col-xs-6 col-sm-3 col-md-3 col-lg-3">
                            <div class="funfact_one">
                                <div class="timer">7,348</div>
                                <p>Freelancer</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12 col-lg-4 pb25 pt25 pl30">
                    <div class="footer_social_widget mt15">
                        <p class="float-left mt10">Follow Us</p>
                        <ul>
                            <li class="list-inline-item"><a href="#"><i class="fa fa-facebook"></i></a></li>
                            <li class="list-inline-item"><a href="#"><i class="fa fa-twitter"></i></a></li>
                            <li class="list-inline-item"><a href="#"><i class="fa fa-instagram"></i></a></li>
                            <li class="list-inline-item"><a href="#"><i class="fa fa-pinterest"></i></a></li>
                            <li class="list-inline-item"><a href="#"><i class="fa fa-dribbble"></i></a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Our Footer -->
    <section class="footer_one">
        <div class="container">
            <div class="row">
                <div class="col-sm-6 col-md-4 col-md-3 col-lg-2">
                    <div class="quick_link_widget">
                        <h4>Quick Links</h4>
                        <ul class="list-unstyled">
                            <li><a href="#">Job Packages</a></li>
                            <li><a href="#">Post New Job</a></li>
                            <li><a href="#">Jobs Listing</a></li>
                            <li><a href="#">Jobs Style Grid</a></li>
                            <li><a href="#">Employer Listing</a></li>
                            <li><a href="#">Employers Grid</a></li>
                        </ul>
                    </div>
                </div>
                <div class="col-sm-6 col-md-4 col-md-3 col-lg-3">
                    <div class="candidate_widget">
                        <h4>For Candidates</h4>
                        <ul class="list-unstyled">
                            <li><a href="#">User Dashboard</a></li>
                            <li><a href="#">CV Packages</a></li>
                            <li><a href="#">Candidate Listing</a></li>
                            <li><a href="#">Candidates Grid</a></li>
                        </ul>
                    </div>
                </div>
                <div class="col-sm-4 col-md-4 col-md-3 col-lg-3">
                    <div class="employe_widget">
                        <h4>For Employers</h4>
                        <ul class="list-unstyled">
                            <li><a href="#">Post New</a></li>
                            <li><a href="#">Job Employer Listing</a></li>
                            <li><a href="#">Employers Grid</a></li>
                            <li><a href="#">Job Packages</a></li>
                            <li><a href="#">Jobs Listing</a></li>
                            <li><a href="#">Jobs Style Grid</a></li>
                        </ul>
                    </div>
                </div>
                <div class="col-sm-8 col-md-6 col-md-3 col-lg-4">
                    <div class="newsletter_widget">
                        <h4>Newsletter</h4>
                        <p>Subscribe to CareerUp Pacific newsletter to get the latest jobs posted, candidates ,and other
                            latest news stay updated.</p>
                        <form class="form-inline mailchimp_form">
                            <label class="sr-only" for="inlineFormInputMail2">Name</label>
                            <input type="email" class="form-control mb-2 mr-sm-2" id="inlineFormInputMail2"
                                   placeholder="Enter your email address">
                            <button type="submit" class="btn btn-primary mb-2"><span class="fa fa-paper-plane-o"></span>
                            </button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Our Footer Bottom Area -->
    <section class="footer_bottom_area p0">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 pb10 pt10">
                    <div class="copyright-widget tac-smd mt20">
                        <p>© 2019 CareerUp. All Rights <a href="/http://www.51qianduan.com//"
                                                          title="17sucai">Reserved</a>.</p>
                    </div>
                </div>
                <div class="col-lg-8 pb10 pt10">
                    <div class="footer_menu text-right mt10">
                        <ul>
                            <li class="list-inline-item"><a href="/page-terms-and-policies.html">Site Map</a></li>
                            <li class="list-inline-item"><a href="/page-terms-and-policies.html">Privacy Policy</a></li>
                            <li class="list-inline-item"><a href="/page-terms-and-policies.html">Terms of Service</a>
                            </li>
                            <li class="list-inline-item"><a href="/page-terms-and-policies.html">Security & Privacy</a>
                            </li>
                            <li class="list-inline-item">
                                <select class="selectpicker show-tick">
                                    <option>English</option>
                                    <option>Frenc</option>
                                    <option>Italian</option>
                                    <option>Spanish</option>
                                    <option>Turkey</option>
                                </select>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <a class="scrollToHome text-thm" href="#"><i class="flaticon-rocket-launch"></i></a>
</div>
<!-- Wrapper End -->
<script type="text/javascript" src="/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/js/jquery-migrate-3.0.0.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/jquery.mmenu.all.js"></script>
<script type="text/javascript" src="/js/ace-responsive-menu.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="/js/snackbar.min.js"></script>
<script type="text/javascript" src="/js/simplebar.js"></script>
<script type="text/javascript" src="/js/parallax.js"></script>
<script type="text/javascript" src="/js/scrollto.js"></script>
<script type="text/javascript" src="/js/jquery-scrolltofixed-min.js"></script>
<script type="text/javascript" src="/js/jquery.counterup.js"></script>
<script type="text/javascript" src="/js/wow.min.js"></script>
<script type="text/javascript" src="/js/progressbar.js"></script>
<script type="text/javascript" src="/js/slider.js"></script>
<script type="text/javascript" src="/js/timepicker.js"></script>
<script type="text/javascript" src="/js/wow.min.js"></script>
<!-- Custom script for all pages -->
<script type="text/javascript" src="/js/script.js"></script>
</body>
</html>